#include<stdio.h>
int main()
{
	int i = 1;
	int j = 1;
	scanf_s("%d %d", &i, &j);
	int n = i > j ? i : j;
	int w =n ;
	while (1)
	{
		if (w % i == 0 && w % j == 0)
		{
			break;
		}
		else
		{
			w = w + n;
		}
		
	}
	printf("%d",w );
	return 0;
}